import * as THREE from 'three';
export const LightList = []
// // 添加环境光（自然光），设置自然光的颜色，设置自然光的强度（0 最暗， 1 最强）
const hemiLight = new THREE.HemisphereLight("#A09E9E", 0.5);
hemiLight.position.set(0, 40, 15);
LightList.push(hemiLight)
// const hemiLighthelper = new THREE.HemisphereLightHelper(hemiLight, 5);
// LightList.push(hemiLighthelper)
// export const pointLight = new THREE.PointLight(
//   'rgb(255,255,255)',
//   0.7,
//   600,
//   0.2
// )
// pointLight.position.set(0, 1, 50)  // 设置点光源位置 (x,y,z)
// LightList.push(pointLight)
// 平行光
const directionalLight = new THREE.DirectionalLight(0xFFFFFF);
directionalLight.castShadow = true;
directionalLight.shadow.camera.near = .5;
directionalLight.shadow.camera.far = 50;
directionalLight.shadow.camera.left = -10;
directionalLight.shadow.camera.right = 10;
directionalLight.shadow.camera.top = 100;
directionalLight.shadow.camera.bottom = -10;
directionalLight.position.set(0, 35, 20);
LightList.push(directionalLight)
// const directionalLightHelper = new THREE.DirectionalLightHelper(directionalLight, 5);
// LightList.push(directionalLightHelper)

// export const test = new THREE.HemisphereLight(0xffffff, 0x444444);
// test.position.set(0, 10, 0);
// LightList.push(test) 
/*
pointLight config
color - (可选参数)) 十六进制光照颜色。默认 0xffffff (白色)。
intensity - (可选参数) 光照强度。 缺省值 1。
distance - 这个距离表示从光源到光照强度为0的位置。 当设置为0时，光永远不会消失，默认0。
decay - 沿着光照距离的衰退量。默认 1。
*/
